package cn.shengchao.qywx.infrastrure.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import top.continew.starter.extension.crud.model.entity.BaseDO;

@Data
@TableName(value = "qywx_rule_group")
public class QywxRuleGroup extends BaseDO {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 组合次序
     */
    @TableField(value = "group_profit")
    private Integer groupProfit;

    /**
     * 目标类型（1客服组，2邀请所属，3指定用户）
     */
    @TableField(value = "action_type")
    private String actionType;
    /**
     * 删除标记 0生效 1删除
     */
    @TableField(value = "deleted")
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;
    /**
     * 目标值
     */
    @TableField(value = "action_value")
    private String actionValue;

    /**
     * 规则id
     */
    @TableField(value = "rule_id")
    private Long ruleId;
}